import http from "./request"

export const catitemsApi = () => {
    return http({
        method: 'GET',
        url: 'https://api-hmugo-web.itheima.net/api/public/v1/home/catitems',
        params: {}
    });
}

export const searchApi = (query) => {
    return http({
        method: 'GET',
        url: 'https://api-hmugo-web.itheima.net/api/public/v1/goods/search',
        params: { query }
    });
}